package java67_adv8;

import java.util.Map;

public class MapPuter implements Runnable {
	private Map<Integer, Integer> map;

	public MapPuter(Map<Integer, Integer> map) {
		this.map = map;
	}

	@Override
	public void run() {
		for (int i = 1; i <= 1000; i++) {
			synchronized (map) {
				map.put(i, i);
			}

		}
	}

}
